package xyz.jangle.design.singleton;
/**
 * 使用静态内部类实现单例模式
 * @author Administrator
 *
 */
public class SingletonInnerStatic {
	
	private SingletonInnerStatic() {
		System.out.println("静态内部类的单例模式");
	};
	
	private static class SingletonInner {
		private static final SingletonInnerStatic INSTANCE = new SingletonInnerStatic();
	}
	
	public static SingletonInnerStatic getInstance() {
		return SingletonInner.INSTANCE;
	}
	

}
